home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************
- * *
- * Spooler.H *
- * *
- * Line Printer Daemon using TCP/IP printer protocol *
- * *
- * -------------- The spool file maintenance routines -------------- *
- * *
- * Written by Casper Boon, August, 1992. *
- * *
- * © 1992, Casper Boon. *
- * *
- ************************************************************************/
-
-
- typedef struct ctl_def
- {
- integer nFiles, nextFile;
- char printer[100];
- char class[32];
- char host[32];
- char src_name[36]; /* 4 extra for the ",..." string */
- char owner[32];
- } ctl_def;
-
- typedef struct {
- char in_name[100];
- Byte outname[100];
- Boolean pap;
- Boolean postscript;
- Word params;
- } prtRecord, *prtPtr, **prtHandle;
-
- typedef struct
- {
- integer pstate;
- integer cfRef;
- integer fRef;
- integer which_prt;
- Str255 name_buf;
- StringPtr printer;
- Handle elog;
- LongInt old_len, prev_len;
- ctl_def cctl;
- prtPtr prtr;
- } printParm;
-
- integer EnumerateFiles(integer wdRef, integer *anIndex,
- StringPtr name_buf, ctl_def *ctl);
- integer ReadCtlFile(StringPtr name, ctl_def * ctl);
- integer ReadLine(integer fRef, char *buf, integer lim);
-
- void NextFile(integer which_prt);
- void PrintFileDone(integer flag, Ptr param);
- integer GetFile(StringPtr name_buf, ctl_def *ctl);
-